package cn.gok.hotelback.mapper;

import cn.gok.hotelback.entity.RoomType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface RoomTypeMapper {
    @Select("SELECT * FROM room_types")
    List<RoomType> selectAll();
    
    @Select("SELECT * FROM room_types WHERE type_id = #{typeId}")
    RoomType selectById(Integer typeId);
} 